$OpenBSD: patch-avidemux_ADM_videoFilter_ADM_vidBlend_cpp,v 1.2 2012/08/20 11:51:00 pascal Exp $
--- avidemux/ADM_videoFilter/ADM_vidBlend.cpp.orig	Fri Aug 10 18:41:01 2012
+++ avidemux/ADM_videoFilter/ADM_vidBlend.cpp	Fri Aug 10 18:41:49 2012
@@ -39,6 +39,7 @@
 
 #include "admmangle.h"
 
+#ifndef __PIC__
 #ifdef ARCH_X86_64
 static int64_t _l_w asm(MANGLE(_l_w)), _l_h asm(MANGLE(_l_h));
 #else
@@ -46,6 +47,7 @@ static int32_t _l_w asm(MANGLE(_l_w)), _l_h asm(MANGLE
 #endif
 static uint8_t *_l_p asm(MANGLE(_l_p)), *_l_c asm(MANGLE(_l_c)), *_l_n asm(MANGLE(_l_n));
 static uint8_t *_l_e asm(MANGLE(_l_e)), *_l_e2 asm(MANGLE(_l_e2));
+#endif
 #define EXPAND(x) (x)+((x)<<16)+((x)<<32) +((x)<<48)
 static uint64_t  __attribute__((used)) _mmTHRESH1 asm(MANGLE(_mmTHRESH1)) =EXPAND((uint64_t )THRES1);
 static uint64_t  __attribute__((used)) full_ones asm(MANGLE(full_ones)) =0xFFFFFFFFFFFFFFFFLL;
@@ -79,7 +81,7 @@ uint32_t x,y;
                  }
               }
 }
-#if defined( ARCH_X86)  || defined(ARCH_X86_64)
+#if defined( ARCH_X86)  || defined(ARCH_X86_64) && !defined(__PIC__)
 void ADMVideoFields::blend_MMX(uint8_t *p,uint8_t *c,
 																							uint8_t *n,
 																							uint8_t *e,
